﻿
using Microsoft.Playwright;
using System.Xml.Linq;
using System;

var playwright = await Playwright.CreateAsync();
var browser = await playwright.Chromium.LaunchAsync(new BrowserTypeLaunchOptions
{
    Channel = "chrome",
    Headless = false,
    SlowMo = 2000  // 步骤之间执行的延迟    
});

var page = await browser.NewPageAsync();

var response = await page.GotoAsync("https://www.163.com/", new()
{
    Timeout = 60000
});

await page.GetByTitle("科技").ClickAsync();

await page.PauseAsync();



Console.ReadKey();